package com.oocl.admin_platform.service.factory;

import com.oocl.admin_platform.service.FailReasonService;
import com.oocl.admin_platform.service.ManagerService;
import com.oocl.admin_platform.service.MerchantService;

import com.oocl.admin_platform.service.impl.FailReasonServiceImpl;
import com.oocl.admin_platform.service.impl.ManagerServiceImpl;
import com.oocl.admin_platform.service.impl.MerchantServiceImpl;



public class ServiceFactory {
	private static MerchantService merchantService;
	
	private static ManagerService managerService;
	
	private static FailReasonService failReasonService;
	

	
	
	public static MerchantService getMerchantServiceInstance(){
		if (merchantService==null) {
			merchantService=new MerchantServiceImpl();
		}
		return merchantService;
	}
	
	
	
	public static ManagerService getManagerServiceInstance(){
		if (managerService==null) {
			managerService=new ManagerServiceImpl();
		}
		return managerService;
	}
	
	public static FailReasonService getFailReasonServiceInstance(){
		if (failReasonService==null) {
			failReasonService=new FailReasonServiceImpl();
		}
		return failReasonService;
	}
	
	

	
	
}
